package org.acme.hibernate.orm.panache;

import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import org.eclipse.microprofile.rest.client.inject.RestClient;

import java.util.Set;

@Path("/extensions")
public class ExtensionsResource {

    @RestClient
    ExtensionService extensionService;

    @GET
    @Path("/id/{id}")
    public Set<Extension> id(String id) {
        return extensionService.getById(id);
    }


}
